package com.wh.book2.service;

import com.wh.book2.mapper.UserMapper;
import com.wh.book2.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public UserInfo getUserInfoByName(String userName) {
        return userMapper.getUserInfoByName(userName);
    }
}
